package com.yike.user.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yike.common.api.Update;
import com.yike.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户咨询
 *
 * @author Sakura
 * @since 2025-04-25
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "用户咨询参数")
public class UserConsultParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户姓名")
    @NotBlank(message = "用户姓名不能为空")
    @Length(max = 60, message = "用户姓名不能超过60个字符")
    private String userName;

    @ApiModelProperty("用户电话")
    @NotBlank(message = "用户电话不能为空")
    @Length(max = 60, message = "用户电话不能超过60个字符")
    private String userMobile;

    @ApiModelProperty("描述")
    @NotBlank(message = "描述不能为空")
    @Length(max = 500, message = "描述不能超过500个字符")
    private String description;

}
